package top.fzqblog.test

/**
 * Created by 抽离 on 2017/7/29 0029.
 */
fun main(args: Array<String>) {
    foo()
}

var arr = arrayOf(1, 2, 3, 0)

fun foo() {
    arr.forEach {
        if (it ==0) return@forEach
        println(it)
    }
}